
import { getUrl, postUrl } from "../until/request"

/**
 * @description: 获取所有文章
 * @param {*} url
 * @param {*} params
 * @return {*}
 */
export const getAgentData = async (url, params) => await getUrl(url, params)

/**
 * @description: 删除
 * @param {*} url
 * @param {*} params
 * @return {*}
 */
export const delAgentHttp = async (url, params) => await getUrl(url, params)

/**
 * @description: 删除
 * @param {*} url
 * @param {*} params
 * @return {*}
 */
export const addAgentHttp = async (url, params) => await postUrl(url, params)

/**
* @description: 删除
* @param {*} url
* @param {*} params
* @return {*}
*/
export const editAgentHttp = async (url, params) => await postUrl(url, params)

/**
* @description: 删除
* @param {*} url
* @param {*} params
* @return {*}
*/
export const isAgentStateHttp = async (url, params) => await postUrl(url, params)